//
//  YDAHomeTopView.h
//  siyanone
//
//  Created by LK-IOS on 2018/3/23.
//  Copyright © 2018年 LK-News. All rights reserved.
//

#import <UIKit/UIKit.h>

@class YDAHomeTopView;
//点击视图类型
typedef NS_ENUM(NSUInteger, SYAHomeTopViewStyle) {
    SYAHomeTopViewStyleCarsoul,//0   deafault
    SYAHomeTopViewStyleMarket,//1
    SYAHomeTopViewStyleRotation,//2
};

@protocol SYAHomeTopViewDelegate <NSObject>


/**
 点击了topView上面的界面类型及索引
 
 @param topView topView
 @param viewStyle view类型
 @param index 点击索引
 */
-(void)homeTopView:(YDAHomeTopView *)topView didSelectedViewType:(SYAHomeTopViewStyle)viewStyle viewIndex:(NSInteger)index;


@end

@interface YDAHomeTopView : UIView



@property (nonatomic , strong) NSArray *carsoulImageUrlArray;
@property (nonatomic , strong) NSArray *imageTitleArray;
@property (nonatomic , strong) NSArray *marketModelArray;


+ (instancetype)homeTopViewWithCarsoulImageUrlArray:(NSArray *)carsoulImageUrlArray ImageTitleArray:(NSArray *)imageTitleArray MarketModelArray:(NSArray *)marketModelArray;


@property (nonatomic , weak)id<SYAHomeTopViewDelegate>delegate;

@end
